package com.xiaozhen.quartz;

import com.xiaozhen.swagger.annotation.EnableCustomSwagger2;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;


/**
 * HISTORY
 *
 * @author zhenweisheng
 * @date 2021/8/5 9:52
 * @description:
 */
@SpringBootApplication(scanBasePackages = {"com.xiaozhen"})
@MapperScan(basePackages = {"com.xiaozhen.*.dao"})
@EnableDiscoveryClient
@EnableFeignClients
@EnableCustomSwagger2
public class QuartzApplication {

    @LoadBalanced
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

    public static void main(String[] args) {
        SpringApplication.run(QuartzApplication.class, args);
    }
}

